Skip to content

[PS] Migrate StorageMover module to autorest v4 #28333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JoyerJin
Copy link
Contributor

@JoyerJin JoyerJin commented Aug 5, 2025

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@JoyerJin JoyerJin added the Breaking Change Release This PR contains breaking change label Aug 5, 2025
Copy link

github-actions bot commented Aug 5, 2025

To the author of the pull request,
This PR was labeled "Breaking Change Release" because it contains breaking changes.

  • According to our policy, breaking changes can only take place during major release and they must be preannounced.
  • Please follow our guide on the detailed steps.
  • Required: Please fill in the task below to facilitate our contact,you will receive notifications related to breaking changes.

@JoyerJin JoyerJin marked this pull request as ready for review August 5, 2025 09:32
@Copilot Copilot AI review requested due to automatic review settings August 5, 2025 09:32
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the StorageMover module from autorest v3 to autorest v4, updating the code generation framework and maintaining API compatibility. The migration includes comprehensive updates to generated models, parameter sets, documentation, and test configurations.

  • Updates autorest framework from v3 to v4 for improved code generation
  • Refreshes all generated PowerShell cmdlets and documentation with new parameter sets and model types
  • Maintains backward compatibility through breaking change exceptions for enum type changes

Reviewed Changes

Copilot reviewed 77 out of 77 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/StaticAnalysis/Exceptions/Az.StorageMover/BreakingChangeIssues.csv Documents expected breaking changes from enum types to strings during migration
src/StorageMover/StorageMover/help/*.md Updates help documentation with new parameter sets and model namespaces
src/StorageMover/StorageMover.Autorest/test/Get-AzStorageMoverJobRun.Tests.ps1 Fixes test to access JobRunResourceId property correctly
src/StorageMover/StorageMover/Az.StorageMover.psd1 Updates module dependencies and generation timestamp
src/StorageMover/StorageMover.sln Refreshes solution file with updated project configurations
Comments suppressed due to low confidence (1)

src/StorageMover/StorageMover.Autorest/test/Get-AzStorageMoverJobRun.Tests.ps1:23

  • The property name 'JobRunResourceId1' appears to have an inconsistent suffix '1'. Consider using a more descriptive property name like 'JobRunResourceId' or verify this is the correct property name.
        $jobRunName = $job.JobRunResourceId1.Split("/")[-1]

yifanz7
yifanz7 previously approved these changes Aug 6, 2025
Copy link
Member

@yifanz7 yifanz7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Change Release This PR contains breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants